<%@ include file="/common/taglibs.jsp"%>

<title><fmt:message key="workTypeDetail.title"/></title>
<content tag="heading"><fmt:message key="workTypeDetail.heading"/></content>

<html:form action="saveWorkType" method="post" styleId="workTypeForm" onsubmit="return validateWorkTypeForm(this)">
<ul>

<html:hidden property="id"/>

    <li>
        <generalsetting:label styleClass="desc" key="workTypeForm.workTypeId"/>
        <html:errors property="workTypeId"/>
        <html:text property="workTypeId" styleId="workTypeId" styleClass="text medium"/>

    </li>

    <li>
        <generalsetting:label styleClass="desc" key="workTypeForm.workTypeName"/>
        <html:errors property="workTypeName"/>
        <html:text property="workTypeName" styleId="workTypeName" styleClass="text medium"/>

    </li>

    <li>
        <generalsetting:label styleClass="desc" key="workTypeForm.workOnTime"/>
        <html:errors property="workOnTime"/>
        <html:text property="workOnTime" styleId="workOnTime" styleClass="text medium"/>

    </li>

    <li>
        <generalsetting:label styleClass="desc" key="workTypeForm.workOffTime"/>
        <html:errors property="workOffTime"/>
        <html:text property="workOffTime" styleId="workOffTime" styleClass="text medium"/>

    </li>

    <li>
        <generalsetting:label styleClass="desc" key="workTypeForm.mealTimeStart"/>
        <html:errors property="mealTimeStart"/>
        <html:text property="mealTimeStart" styleId="mealTimeStart" styleClass="text medium"/>

    </li>

    <li>
        <generalsetting:label styleClass="desc" key="workTypeForm.mealTimeEnd"/>
        <html:errors property="mealTimeEnd"/>
        <html:text property="mealTimeEnd" styleId="mealTimeEnd" styleClass="text medium"/>

    </li>

    <li>
        <generalsetting:label styleClass="desc" key="workTypeForm.mealTimeStart2"/>
        <html:errors property="mealTimeStart2"/>
        <html:text property="mealTimeStart2" styleId="mealTimeStart2" styleClass="text medium"/>

    </li>

    <li>
        <generalsetting:label styleClass="desc" key="workTypeForm.mealTimeEnd2"/>
        <html:errors property="mealTimeEnd2"/>
        <html:text property="mealTimeEnd2" styleId="mealTimeEnd2" styleClass="text medium"/>

    </li>
    <li>
        <generalsetting:label styleClass="desc" key="workTypeForm.workQty"/>
        <html:text property="workQty" styleId="workQty" styleClass="text medium"/>

    </li>
    <li class="buttonBar bottom">
        <html:submit styleClass="button" property="method.save" onclick="bCancel=false">
            <fmt:message key="button.save"/>
        </html:submit>

        <html:submit styleClass="button" property="method.delete" onclick="bCancel=true; return confirmDelete('WorkType')">
            <fmt:message key="button.delete"/>
        </html:submit>

        <html:cancel styleClass="button" onclick="bCancel=true">
            <fmt:message key="button.cancel"/>
        </html:cancel>
    </li>
</ul>
</html:form>

<script type="text/javascript">
    Form.focusFirstElement($("workTypeForm"));
</script>

<html:javascript formName="workTypeForm" cdata="false" dynamicJavascript="true" staticJavascript="false"/>
<script type="text/javascript" src="<html:rewrite page="/scripts/validator.jsp"/>"></script>
